package com.itheima.controllerApi;

import com.itheima.common.R;
import com.itheima.domain.Category;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@Api(description = "菜品分类接口")
public interface CategoryControllerApi {
    @ApiOperation("添加菜品")
    public R categoryAdd(@RequestBody Category category);

    @ApiOperation("菜品分页查询展示")
    public R  categoryByPage(Integer page,Integer pageSize);

    @ApiOperation("删除菜品")
    public R categoryDelete(Long id);

    @ApiOperation("修改菜品")
    public R categoryUpdate(@RequestBody Category category);

    //展示菜品类型
    @ApiOperation("展示菜品类型")
    public R categoryTpyes(Category category);
}
